<template>
  <div>
    <h2>Smalls组件</h2>
    <p>月亮特点:{{ Characteristic }}</p>
  </div>
</template>

<script>
import PubSub from "pubsub-js"
export default {
  name: "Smalls",
  data() {
    return {
      Characteristic: "反光体",
    };
  },
  // 订阅
  mounted() {
    PubSub.subscribe("getChange",this.getChange)
  },
  methods: {
    getChange(_,value) {
      this.Characteristic = value;
    },
  },
};
</script>

<style>
</style>